package com.atguigu.jinx.entity.dto;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author steve
 * @since 2025-08-27
 */
@Getter
@Setter
@ToString
@TableName("recharge_request")
public class RechargeRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField("user_id")
    private Long userId;

    /**
     * 充值金额
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 0=待审核, 1=处理中, 2=成功, 3=失败
     */
    @TableField("status")
    private Byte status;

    /**
     * 1=支付宝, 2=微信
     */
    @TableField("pay_method")
    private Byte payMethod;

    @TableField("paid_at")
    private LocalDateTime paidAt;

    @TableField(value = "created_at",fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(value = "updated_at",fill = FieldFill.UPDATE)
    private LocalDateTime updatedAt;


    @TableField("order_no")
    private String orderNo;

    @TableField("out_order_no")
    private String outOrderNo;

}
